-
as seen on Super User
- Search for 'Super User'
Like many of you, my custom Vim configuration is stored in my ~/.vimrc, with the plugins, colors, etc. stored under ~/.vim/plugins, ~/.vim/colors, etc.
I want to share a single Vim configuration among many servers. Some of these servers run Vim 7, some run the older Vim 6. Most Vim plugins are intended…
>>> More
-
as seen on Super User
- Search for 'Super User'
I'm trying to use Pathogen to manage my Vim extensions. My bundle folder looks like this:
.../bundle/
+-- vim-pathogen
¦ +-- autoload
¦ +-- pathogen.vim
+-- vim-smoothscroll
+-- autoload
+-- smooth_scroll.vim
And my vimrc file includes this:
let s:root = fnamemodify(resolve(expand(":p"))…
>>> More
-
as seen on Super User
- Search for 'Super User'
I created a custom syntax file, and but none of the files in $VIMRUNTIME seem to load. I followed these pieces of the documentation:
http://vimdoc.sourceforge.net/htmldoc/filetype.html#new-filetype
http://vimdoc.sourceforge.net/htmldoc/syntax.html#mysyntaxfile
When I do
:echo &runtimepath
I…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
The "matchit" plugin for vim is supposed to allow you to use the % key to jump between matching start/end tags when editing HTML, as well as /* and */ comment delimiters when editing other kinds of code.
I've followed the exact instructions in ":help matchit", but % still doesn't work for me.
It…
>>> More
-
as seen on Super User
- Search for 'Super User'
I store, commands found at http://www.commandlinefu.com/commands/browse, in a text file.
If I open this text file in Vim and I want to execute the command where the cursor is actually located I do copy the line with Y, switching to command mode with : and !CTRL+r*
Is there a more "lazy" possibility ;)
>>> More
-
as seen on Super User
- Search for 'Super User'
On my Linux server at work, the admins did not install cscope, and I installed it from source in my home directory and added it to the $PATH. The trouble is, the /etc/vimrc has a reference to /usr/bin/cscope which does not exist and everytime I start vim, it complains about that and I have to press…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
say that i have a project which lies in a folder called 'bin', and i want some specific vim configuration automatically loaded when i edit any file inside the project folder. how can i do that?
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I want to map ctrl-tab to :tabn, and ctrl-shift-tab to :tabp.
I had it working for gVim in Windows XP, but moved it to my .vimrc in Ubuntu 9.10 and it doesn't work (vim 7.2).
Here's the relevant section of my .vimrc:
nmap <C-Tab> :tabn<CR>
nmap <C-S-Tab> :tabp<CR>
nmap <C-t>…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
set nohlsearch
set ai
set bg=dark
set showmatch
highlight SpecialKey ctermfg=DarkGray
set listchars=tab:>-,trail:~
set list
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
set tabstop=4
set shiftwidth=4
set expandtab
set autoindent
set smartindent
syntax…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I added the following code to my .vimrc:
" save and restore folds when a file is closed and re-opened
autocmd BufWinLeave *.* mkview
autocmd BufWinEnter *.* silent loadview
HTML and CSS documents save and restore their folds but code folding is not being saved in my .vimrc
Any suggestions?
EDIT:
The…
>>> More