blob: 9c02ea3a45274f1372e0971348b0bed22f94fe11 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
nnoremap € $
vnoremap € $
nnoremap ) 0
vnoremap ) 0
nnoremap < <<
nnoremap > >>
nnoremap K :vert Man<cr>
vnoremap K :vert Man<cr>
nnoremap <c-h> <c-w>h
nnoremap <c-j> <c-w>j
nnoremap <c-k> <c-w>k
nnoremap <c-l> <c-w>l
nnoremap V <c-v>
nnoremap <c-v> V
nnoremap <c-n> :make<cr>
fu! SortWords()
if visualmode() == "V"
'<,'>!sort -
else
'<,'>s/\%V.*\%V\w*/\=join(sort(split(submatch(0))), ' ')
endif
endfu
vnoremap s :<c-u>call SortWords()<cr>
set noet
set tw=80 colorcolumn=81
set secure exrc
set splitright splitbelow
|