a few small tweeks to .vimrc file

This commit is contained in:
Steve Francia 2011-04-25 08:20:57 -04:00
parent 91d2abc244
commit 13744bd5cb
3 changed files with 19 additions and 1 deletions

3
.gitmodules vendored
View File

@ -61,3 +61,6 @@
[submodule ".vim/bundle/vim-colors-solarized"]
path = .vim/bundle/vim-colors-solarized
url = https://github.com/altercation/vim-colors-solarized.git
[submodule ".vim/bundle/pydoc.vim"]
path = .vim/bundle/pydoc.vim
url = https://github.com/fs111/pydoc.vim.git

1
.vim/bundle/pydoc.vim Submodule

@ -0,0 +1 @@
Subproject commit 56c23972ad6de20e558ec7806371042529f0a41e

16
.vimrc
View File

@ -107,12 +107,15 @@
set ignorecase " case insensitive search
set smartcase " case sensitive when uc present
set wildmenu " show list instead of just completing
set wildmode=list:longest,full " comand <Tab> completion, list matches, then longest common part, then all.
set wildmode=list:longest,full " command <Tab> completion, list matches, then longest common part, then all.
set whichwrap=b,s,h,l,<,>,[,] " backspace and cursor keys wrap to
set scrolljump=5 " lines to scroll when cursor leaves screen
set scrolloff=3 " minimum lines to keep above and below cursor
set foldenable " auto fold code
set gdefault " the /g flag on :s substitutions by default
set list
set listchars=tab:>.,trail:.,extends:#,nbsp:. " Highlight problematic whitespace
" }
@ -136,6 +139,10 @@
"location
let mapleader = ','
" Making it so ; works like : for commands. Saves typing and eliminates :W style typos due to lazy holding shift.
nnoremap ; :
" Easier moving in tabs and windows
map <C-J> <C-W>j<C-W>_
map <C-K> <C-W>k<C-W>_
@ -143,6 +150,10 @@
map <C-H> <C-W>h<C-W>_
map <C-K> <C-W>k<C-W>_
" Wrapped lines goes down/up to next row, rather than next line in file.
nnoremap j gj
nnoremap k gk
" The following two lines conflict with moving to top and bottom of the
" screen
" If you prefer that functionality, comment them out.
@ -171,6 +182,9 @@
nmap <leader>f8 :set foldlevel=8<CR>
nmap <leader>f9 :set foldlevel=9<CR>
"clearing highlighted search
nmap <silent> <leader>/ :nohlsearch<CR>
" Shortcuts
" Change Working Directory to that of the current file
cmap cwd lcd %:p:h