Skip to content

Commit 13744bd

Browse files
committed
a few small tweeks to .vimrc file
1 parent 91d2abc commit 13744bd

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,6 @@
6161
[submodule ".vim/bundle/vim-colors-solarized"]
6262
path = .vim/bundle/vim-colors-solarized
6363
url = https://github.com/altercation/vim-colors-solarized.git
64+
[submodule ".vim/bundle/pydoc.vim"]
65+
path = .vim/bundle/pydoc.vim
66+
url = https://github.com/fs111/pydoc.vim.git

.vim/bundle/pydoc.vim

Submodule pydoc.vim added at 56c2397

.vimrc

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,15 @@
107107
set ignorecase " case insensitive search
108108
set smartcase " case sensitive when uc present
109109
set wildmenu " show list instead of just completing
110-
set wildmode=list:longest,full " comand <Tab> completion, list matches, then longest common part, then all.
110+
set wildmode=list:longest,full " command <Tab> completion, list matches, then longest common part, then all.
111111
set whichwrap=b,s,h,l,<,>,[,] " backspace and cursor keys wrap to
112112
set scrolljump=5 " lines to scroll when cursor leaves screen
113113
set scrolloff=3 " minimum lines to keep above and below cursor
114114
set foldenable " auto fold code
115115
set gdefault " the /g flag on :s substitutions by default
116+
set list
117+
set listchars=tab:>.,trail:.,extends:#,nbsp:. " Highlight problematic whitespace
118+
116119

117120
" }
118121

@@ -136,13 +139,21 @@
136139
"location
137140
let mapleader = ','
138141

142+
" Making it so ; works like : for commands. Saves typing and eliminates :W style typos due to lazy holding shift.
143+
nnoremap ; :
144+
145+
139146
" Easier moving in tabs and windows
140147
map <C-J> <C-W>j<C-W>_
141148
map <C-K> <C-W>k<C-W>_
142149
map <C-L> <C-W>l<C-W>_
143150
map <C-H> <C-W>h<C-W>_
144151
map <C-K> <C-W>k<C-W>_
145152
153+
" Wrapped lines goes down/up to next row, rather than next line in file.
154+
nnoremap j gj
155+
nnoremap k gk
156+
146157
" The following two lines conflict with moving to top and bottom of the
147158
" screen
148159
" If you prefer that functionality, comment them out.
@@ -171,6 +182,9 @@
171182
nmap <leader>f8 :set foldlevel=8<CR>
172183
nmap <leader>f9 :set foldlevel=9<CR>
173184
185+
"clearing highlighted search
186+
nmap <silent> <leader>/ :nohlsearch<CR>
187+
174188
" Shortcuts
175189
" Change Working Directory to that of the current file
176190
cmap cwd lcd %:p:h

0 commit comments

Comments
 (0)