Skip to content

Commit

Permalink
a few small tweeks to .vimrc file
Browse files Browse the repository at this point in the history
  • Loading branch information
spf13 committed Apr 25, 2011
1 parent 91d2abc commit 13744bd
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
Expand Up @@ -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 change: 1 addition & 0 deletions .vim/bundle/pydoc.vim
Submodule pydoc.vim added at 56c239
16 changes: 15 additions & 1 deletion .vimrc
Expand Up @@ -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


" }

Expand All @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 13744bd

Please sign in to comment.