1
0
mirror of https://github.com/akelge/vim synced 2025-07-12 09:32:09 +00:00

New layout

This commit is contained in:
2020-02-11 16:45:24 +01:00
parent 6c90fbf3d3
commit 7f6791fb76
80 changed files with 101 additions and 10798 deletions

View File

@ -0,0 +1,90 @@
*akmap.txt* Andre Vim mappings
1. Overview |akmap-intro|
2. Toggles |akmap-toggles|
3. OS Interaction |akmap-os|
4. Developer |akmap-dev|
5. Commenter |akmap-commenter|
6. Text |akmap-text|
7. Misc |akmap-misc|
7. Version |akmap-ver|
======================================================================
*akmap-intro*
1. Overview~
<,hh> - Show this file
*akmap-toggles*
2. Toggles~
,l - Toggle list |list|
,N - Toggle line numbers |numbers|
,x - Toggle paste |paste|
,f - Toggle Full screen
,n - Toggle NERD Tree (file browser) |NERDTree|
,T - Toggle tags list |taglist.txt|
*akmap-os*
3. OS interaction~
,ts - Open terminal window, splitting |ConqueTerm|
,tt - Open terminal window, new tab |ConqueTerm|
,of - Open Filemanager (Finder) in actual directory
*akmap-dev*
4. Developer~
,ml - Append modeline
,ff - Javascript beautifier
,pw - PyDoc
*akmap-commenter*
5. Commenter~
See |NERDCommenter|
,cc - Comment
,cu - Uncomment
,ci - Invert comment status (decomment if commented, comment else)
,cy - Yank and comment
,ca - Alternate delimiters
,cs - Sexy comments (nicer)
*akmap-text*
6. Text~
See |textformat|
,ac - Align center
,aj - Align justify
,al - Align left
,ar - Align right
*akmap-misc*
7. Misc~
In command or insertion mode:
On Linux:
<Shift-Ctrl-Up> - Move line up
<Shift-Ctrl-Down> - Move line down
On OSX:
<Opt-Up> - Move line up
<Opt-Down> - Move line down
In Visual mode:
On Linux:
<Shift-Ctrl-Up> - Move block up
<Shift-Ctrl-Down> - Move block down
On OSX:
<Opt-Up> - Move block up
<Opt-Down> - Move block down
*akmap-ver*
8. Version~
Author: Andrea Mistrali
Version: $Id$
Last change: $Date$
vim:tw=78:ts=8:ft=help:norl:

View File

@ -0,0 +1,9 @@
akmap-commenter akel.txt /*akmap-commenter*
akmap-dev akel.txt /*akmap-dev*
akmap-intro akel.txt /*akmap-intro*
akmap-misc akel.txt /*akmap-misc*
akmap-os akel.txt /*akmap-os*
akmap-text akel.txt /*akmap-text*
akmap-toggles akel.txt /*akmap-toggles*
akmap-ver akel.txt /*akmap-ver*
akmap.txt akel.txt /*akmap.txt*

View File

@ -0,0 +1,88 @@
" Append modeline after last line in buffer.
" Use substitute() (not printf()) to handle '%%s' modeline in LaTeX files.
function! AppendModeline()
let save_cursor = getpos('.')
let append = ' vim: set ts='.&tabstop.' sw='.&shiftwidth.' tw='.&textwidth.' ft='.&filetype.' :'
$put =substitute(&commentstring, '%s', append, '')
call setpos('.', save_cursor)
endfunction
" Define AppendModeline as a command
command! -nargs=0 -bar AppendModeline call AppendModeline()
"
" Map to <Leader>ml
nnoremap <silent> <Leader>ml :call AppendModeline()<CR>
function! GuiTabLabel()
let label = ''
let bufnrlist = tabpagebuflist(v:lnum)
" Append the tab number
let label .= tabpagenr().'. '
" Append the buffer name
let name = bufname(bufnrlist[tabpagewinnr(v:lnum) - 1])
if name == ''
" give a name to no-name documents
if &buftype=='quickfix'
let name = '[Quickfix List]'
else
let name = '[No Name]'
endif
else
" get only the file name
let name = fnamemodify(name,":t")
endif
let label .= name
for bufnr in bufnrlist
if getbufvar(bufnr, "&modified")
let label .= ' [+]'
break
endif
endfor
return label
endfunction
" set up tab tooltips with every buffer name
function! GuiTabToolTip()
let tip = ''
let bufnrlist = tabpagebuflist(v:lnum)
for bufnr in bufnrlist
" separate buffer entries
if tip!=''
let tip .= ' | '
endif
" Add name of buffer
let name=bufname(bufnr)
if name == ''
" give a name to no name documents
if getbufvar(bufnr,'&buftype')=='quickfix'
let name = '[Quickfix List]'
else
let name = '[No Name]'
endif
endif
let tip.=name
" add modified/modifiable flags
if getbufvar(bufnr, "&modified")
let tip .= ' [+]'
endif
if getbufvar(bufnr, "&modifiable")==0
let tip .= ' [-]'
endif
endfor
return tip
endfunction
set guitablabel=%!GuiTabLabel()
set guitabtooltip=%!GuiTabToolTip()
" vim: set ts=4 sw=4 tw=78 ft=vim :