-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinux_setting.vim
More file actions
25 lines (24 loc) · 1.28 KB
/
linux_setting.vim
File metadata and controls
25 lines (24 loc) · 1.28 KB
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
" This file contains Linux setting.
" Please copy it to HOME and modify it
" This is just a template, because Path in each PC may be different.
" Tell Neosnippet about the other snippets
let g:neosnippet#snippets_directory='~/MyGitRepo/Snippets/MyFork/snippets,~/Documents/MySnip,~/Dropbox/Documents/MySnip'
" Mail Signature{{{
" The sign.txt file must employ a signature separator like the following: '--
" '.
" See http://vim.wikia.com/wiki/Insert_mail_signatures_from_a_rotating_file
"nnoremap <Leader>ms :e ~/Documents/signature/sign.txt<CR>ggV/^-- $<CR>k"*xG$a<C-R><C-O>*<Esc>:w<CR>:bd<CR>G$a<C-M><Esc>"*P
"nnoremap <Leader>ms mQG:r ~/Dropbox/Documents/signature/sign.txt<CR>`Q
" Remember current postion and insert signature to the top of mail and return
" to original postion.
nnoremap <Leader>ms mQggO<ESC>:r ~/Dropbox/Documents/signature/sign.txt<CR>ggdd`Q
"}}}
" Weekly Report Template"{{{
nnoremap <Leader>wr gg:r ~/Dropbox/Documents/signature/weekly_report.txt<CR>G:r ~/Dropbox/Documents/signature/sign.txt<CR>ggdd
"}}}
" Monthly Report Template"{{{
nnoremap <Leader>mr gg:r ~/Dropbox/Documents/signature/monthly_report.txt<CR>G:r ~/Dropbox/Documents/signature/sign.txt<CR>ggdd
"}}}
" Feedback Template "{{{
nnoremap <Leader>fee gg:r ~/Dropbox/Documents/signature/feedback.txt<CR>ggdd
"}}}