|
107 | 107 | set ignorecase " case insensitive search
|
108 | 108 | set smartcase " case sensitive when uc present
|
109 | 109 | 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. |
111 | 111 | set whichwrap=b,s,h,l,<,>,[,] " backspace and cursor keys wrap to
|
112 | 112 | set scrolljump=5 " lines to scroll when cursor leaves screen
|
113 | 113 | set scrolloff=3 " minimum lines to keep above and below cursor
|
114 | 114 | set foldenable " auto fold code
|
115 | 115 | set gdefault " the /g flag on :s substitutions by default
|
| 116 | + set list |
| 117 | + set listchars=tab:>.,trail:.,extends:#,nbsp:. " Highlight problematic whitespace |
| 118 | + |
116 | 119 |
|
117 | 120 | " }
|
118 | 121 |
|
|
136 | 139 | "location
|
137 | 140 | let mapleader = ','
|
138 | 141 |
|
| 142 | + " Making it so ; works like : for commands. Saves typing and eliminates :W style typos due to lazy holding shift. |
| 143 | + nnoremap ; : |
| 144 | +
|
| 145 | + |
139 | 146 | " Easier moving in tabs and windows
|
140 | 147 | map <C-J> <C-W>j<C-W>_
|
141 | 148 | map <C-K> <C-W>k<C-W>_
|
142 | 149 | map <C-L> <C-W>l<C-W>_
|
143 | 150 | map <C-H> <C-W>h<C-W>_
|
144 | 151 | map <C-K> <C-W>k<C-W>_
|
145 | 152 |
|
| 153 | + " Wrapped lines goes down/up to next row, rather than next line in file. |
| 154 | + nnoremap j gj |
| 155 | + nnoremap k gk |
| 156 | +
|
146 | 157 | " The following two lines conflict with moving to top and bottom of the
|
147 | 158 | " screen
|
148 | 159 | " If you prefer that functionality, comment them out.
|
|
171 | 182 | nmap <leader>f8 :set foldlevel=8<CR>
|
172 | 183 | nmap <leader>f9 :set foldlevel=9<CR>
|
173 | 184 |
|
| 185 | + "clearing highlighted search |
| 186 | + nmap <silent> <leader>/ :nohlsearch<CR> |
| 187 | +
|
174 | 188 | " Shortcuts
|
175 | 189 | " Change Working Directory to that of the current file
|
176 | 190 | cmap cwd lcd %:p:h
|
|
0 commit comments