Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Vim reads initialization commands from a file called vimrc on startup. This can be used to set settings, define functions, execute autocommands, and more.
1
vote
2
answers
561
views
Why is my colorscheme showing weird colors?
I've been having colorscheme pablo in my .vimrc for years now.
With reference to the vim filetype, for instance, keywords like if/*map/colorscheme were of a bright yellow, and in bold. …
3
votes
1
answer
144
views
Folding example from Learn Vimscript the Hard Way not working?
autocmd FileType vim setlocal foldmethod=marker
augroup END
" }}}
into my ~/.vimrc, saving it, closing it, reopening it, putting the cursor on one of those lines, and pressing za doesn't have any effect … Putting it more simply, if I don't do do anything of what I've written above, but I just paste the following in my ~/.vimrc
" Folding ---------------------- {{{
" this should be foldable
" }}}
then run …
2
votes
Accepted
Folding example from Learn Vimscript the Hard Way not working?
Commenting the ~/.vimrc and uncommenting it bit by bit I found out that the reason for the folding not working was that I was setting foldminlines to a value higher than the number of lines of the fold …
4
votes
1
answer
5k
views
Vim does not redraw screen and cursorlines remain drawn [closed]
I never had this problem, but recently I "lost" my .vimrc file of my Mac and had to use another one from a different computer. … I set the option manually, not in my .vimrc file, since I hope I will solve the problem! With your help.) I have news! …
1
vote
0
answers
43
views
When re-sourcing vimrc, the highlight commands following the colorscheme choice are lost [duplicate]
Given this ~/.vimrc
syntax on
colo pablo
set cul
hi CursorLine cterm=bold ctermbg=NONE ctermfg=NONE gui=bold guibg=NONE guifg=NONE
hi String ctermfg=red
Do the following:
open a file, possibly containing … the true underline dictated by pablo
run :mksession
close the file
reopen the session with vim -S Session.vim
observe that, unexpectedly to me, the file opens just like the 4th and 5th line of the ~/.vimrc …
1
vote
2
answers
626
views
Where should I put filetype specific options for indentation?
At moment, mostly for random reasons, I have
$ cat ~/.vim/ftplugin/c.vim
set tabstop=2 softtabstop=2 expandtab shiftwidth=2 smarttab smartindent autoindent cinoptions=g2
and this
$ cat ~/.vim/ftplug …