Vimrc

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m
m
Line 3: Line 3:
  
 
<source lang="text">
 
<source lang="text">
 +
set mouse=a
 
set tabstop=2
 
set tabstop=2
 
set background=dark
 
set background=dark

Revision as of 11:42, 11 May 2013

This is a configuration file for Vim. Place this in ~/.vimrc

set mouse=a
set tabstop=2
set background=dark
set wildmode=longest,list
set noea
set ead=both
map = <C-w>=:set ea<CR>
map - :res<CR>:vertical res<CR>:set noea<CR>
map <F3> :buffer<space>#<CR>
map <F4> :ls<CR>:buffer<space>
map <F5> :bp<CR>
map <F6> :bn<CR>
map <F11> <C-y>
map <F12> <C-e>
if has("gui_running")
  if has("gui_win32")
    set guifont=6x13-ISO8859-1:h10
    set guioptions+=a
    colorscheme pablo
  endif
endif

Cscope

You will want to download this file cscope_maps.vim to ~/.vim/plugin/cscope_maps.vim, and apply this patch:

--- cscope_maps.vim.orig        2002-03-13 04:45:35.000000000 +0000
+++ cscope_maps.vim     2012-12-03 15:20:19.434136766 +0000
@@ -31,11 +31,11 @@ if has("cscope")
     """"""""""""" Standard cscope/vim boilerplate
 
     " use both cscope and ctag for 'ctrl-]', ':ta', and 'vim -t'
-    set cscopetag
+    "set cscopetag
 
     " check cscope for definition of a symbol before checking ctags: set to 1
     " if you want the reverse search order.
-    set csto=0
+    set csto=1
 
     " add any cscope database in current directory
     if filereadable("cscope.out")
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox