diff --git a/my_configs.vim b/my_configs.vim index 8fd79499..e052657b 100644 --- a/my_configs.vim +++ b/my_configs.vim @@ -12,7 +12,7 @@ let g:solarized_italic=0 " 1 | 0 " let g:solarized_bold=0 " let g:solarized_underline=0 -set background=dark " dark +set background=light " dark :colorscheme solarized " ir_black mayansmoke " syntastic @@ -76,7 +76,7 @@ map tg :TagbarToggle set number " set cursorline and cursorcolumn set cursorline -set cursorcolumn +" set cursorcolumn " foldmethod " set foldmethod=indent " marker " 禁止光标闪烁 diff --git a/tiande.md b/tiande.md index f388964d..20bed38d 100644 --- a/tiande.md +++ b/tiande.md @@ -1,45 +1,67 @@ 基本的 vim 操作就不介绍了,看过一本: [《VIM简明手册》](https://github.com/Tiande/Practice/blob/master/resource/VIM_Tutorial.md) -**WARNING:** +### WARNING: +``` 全局的 就是指 , (逗号) 了 里 'C' 是指 Ctrl , '-' 号无实际意义 地址连接符不用 Win 的 \ ,均以 Unix 的 / 展示 就是让你按空格 +``` +``` " Map to / (search) and Ctrl- to ? (backwards search) 绑定 到 / ? 但因为 为切换输入法,所以可能会无效 +``` +``` " Disable highlight when is pressed ,开关搜索词高亮 是回车的意思 +``` +``` " Smart way to move between windows 快速在窗口间切换 +``` +``` " Switch CWD to the directory of the open buffer ,cd 切换工作目录到当前文件所在目录 +``` +``` " Move a line of text using ALT+[jk] or Comamnd+[jk] on mac 移动当前行(或 visual 选中的多行),与上下的其他行互换 炒鸡好玩!!!!(Mac 用户再见;) ) +``` +``` " Remove the Windows ^M - when the encodings gets messed up ,m 把该死的 utf-8 with BOM(DOS下) 文件格式末尾的 ^M 去掉 +``` +``` " Quickly open a buffer for scribble ,q 快速打开一个 buffer +``` +``` " Quickly open a markdown buffer for scribble ,x 快速打开一个 markdown buffer +``` +``` " Toggle paste mode on and off ,pp 开关 paste mode +``` +``` " Fast editing and reloading of vimrc configs ,e 快速打开 ./my_configs.vim " 如果需要折行 ,e 后,将 set nowrap 注释掉(行头加 ") +``` 目录补全: 输入模式下,按 开启,然后 上下选择