Browse files

a few small tweeks to .vimrc file

  • Loading branch information...
1 parent 91d2abc commit 13744bd5cb1f4c0065d9b1b9d1777567e9650bfd @spf13 spf13 committed Apr 25, 2011
Showing with 19 additions and 1 deletion.
  1. +3 −0 .gitmodules
  2. +1 −0 .vim/bundle/pydoc.vim
  3. +15 −1 .vimrc
View
3 .gitmodules
@@ -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
@@ -0,0 +1 @@
+Subproject commit 56c23972ad6de20e558ec7806371042529f0a41e
View
16 .vimrc
@@ -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,13 +139,21 @@
"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>_
map <C-L> <C-W>l<C-W>_
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

0 comments on commit 13744bd

Please sign in to comment.