国产xxxx99真实实拍_久久不雅视频_高清韩国a级特黄毛片_嗯老师别我我受不了了小说

資訊專欄INFORMATION COLUMN

我的vim配置文件,再度升級

Simon_Zhou / 1606人閱讀

摘要:不過近日來隨著最后幾個補全插件的加入和配置調整,這個配置文件已經比較完整,因此可以好好坐下來,對使用方法和注意點作一介紹。更建議你打開里面的各個文件查看,學習。

中文介紹

原來的repo放在 spf13-vim-leoatchina,因為原來一時腦抽,把中文字體放進去后導致體積較大,影響速度,所以重開一個repo并把windows下的工具分開,以增加clone速度。

現在的配置是在 leoatchina-vim,把原來的windows下面的工具扔到另一個repo下以減少體積

這里是我本人的vim配置,從spf13-vim:steve francia"s vim distribution fork而來。作為幾年前的作品,原配置已經不大適合這個vim8/neovim當道的時代。因此在近兩年的使用時間里, 我不斷調整,從其他人的配置中吸取經驗,對參數進行微調,以適應在不同的系統環境條件下達到較好的使用體驗。

長期以來,這個repo的README一直處于遠遠落后于配置改變的進度,細碎調整特別是快捷鍵的改動,實在是提不勁來進行說明。不過近日來隨著最后幾個補全插件的加入和配置調整,這個配置文件已經比較完整,因此可以好好坐下來,對使用方法和注意點作一介紹。(其實,在這寫這個文檔的時候還在不停地改快捷鍵)

主要特點:

根據系統情況,自動選擇安裝用的插件,并可在~/.vimrc.local里半定制化

漂亮,選擇了兼容256色終端的多個主題

功能豐富:自動補全、語法高亮、語法檢查、運行、格式化都有相應插件

這里我把README里的前面部分貼出來,后面的各個插件的介紹,和快捷鍵,請去原repo查看。更建議你打開里面的各個文件查看,學習。

Requirements

Git 1.7 and Vim7.0 with any of +job,+python,+python3,+lua is at least required, Vim8 or neovim and Git 2.0+ is prefered for advanced fearutures

And I wish you have a basic understanding for vim, know how to read the config files to find what I not mention here.

Install Linux, *nix, Mac OSX
  git clone https://github.com/leoatchina/leoatchina-vim.git
  cd leoatchina-vim
  ./install.sh
windows
  git clone https://github.com/leoatchina/tools-leoatchina-vim.git
  cd leoatchina-vim
  click setup.cmd with administrator rights
  open vim, do :PlugInstall
Update Linux, *nix, Mac OSX
  ./install.sh ,chosse y|Y, the scipt will do git pull and do reinstall plugins
windows
  cd leoatchina-vi#m
  git pull
  open vim, do :PlugReinstall
Upgrade plugins Linux, *nix, Mac OSX
  cd leoatchina-vim
  ./updata.sh

OR

  ~/.vimrc.update

OR

  open vim; do :PlugNew
windows
  open vim; do :PlugNew
Delete Linux, *nix, Mac OSX
  cd leoatchina-vim
  ./uninstall.sh
Windows
  click delete.cmd with administrator rights
How it works

After the installation, a .vimrcsymbol link in the ~ folder (for neovim, to its config file ~/.config/nvim/init.vim in Linux ) which links to the .vimrc file in the leoatchina-vim folder.

The .vimrc or init.vim sources ~/.vimrc.plug for plugins definition, and ~/.vimrc.plug sources ~/.vimrc.local when the file exists, the local file contains an import variable called g:plug_groups for the supporting features for vim, and you do :PlugClean, :PlugInstall, the plugsin will change. The default contents of .vimrc.local is

let g:plug_groups=["smartcomplete", "php", "javascript", "html", "snippet"]

And you can also create ~/.gvimrc.local for gvim, ~/.nvimrc.local for nvim to intall diffent plugins for gvim and nvim. If these two local file not exist, .vimrc.local works.

The typical variables that could be add to g:plug_groups are pymode,go,airline, youcompleteme, etc.

Here is a trick that I set diffent PLUG_PATH for vim/gvim/neovim , ~/.vim/plug for vim , ~/.gvim/plug for gvim, ~/.nvim/plug for neovim.

.vimrc.clean it is an bash file which is set to delete ~/.vimswap & ~/.vimviews folders. Also be linked as ~/.vimrc.clean

Main changes from spf13

use vim-plug instead of vundle, more quick and more smart

totally simplify, delete fork,before files , which are redundent for most users

delete lots of variables for feature settings

just have mentioned before, the link is from the cloned folder

not support XP

Some features

no backup file

no backup

no sound

no scroll bars

no menu, no tools when gui-running

line number

highlight search results

smart indent

In Visual, keep selection after indention change with >,<

Main shortcuts

to , so the biggest key on keyboard is more usefull

to

. for number + 1, , for number -1

: source ~/.vimrc. It is for config develop & debug myself

for bracket jump

c-a to the head of a line, c-e to end in normal/visual/inesert mode, compatible with linux

c-f, c-b, c-k, c-l, g work like Leader key in normal mode

c-f to right c-b to left in insert mode

c-x instead of "c-e" for fullscreen jump, pairs with c-y

c-p invoke browser tools fzf or LeaderF or denite or Ctrlp

gc for gcommit, + for :Git

~ instead of Q, and Q for quit current buffer at once

. for exit visual mode

! for :!

F1: tab help

F2: toggle search results highlight

F3: show register strings

F4: toggle quickrun windows

F5: run script (with plugin vim-quickrun)

F11: full screen toggle, but sometimes not work

F12: paste toggle

tab/buffer control

set tabpagemax=10

cmap Tabe tabe

nnoremap - :tabprevious

nnoremap :tabnext

nnoremap tp :tabprevious

nnoremap tn :tabnext

nnoremap - :tabm -1

nnoremap :tabm +1

nnoremap - :tabfirst

nnoremap :tablast

nnoremap te :tabe

nnoremap ts :tab split

nnoremap tw :tabs

nnoremap tm :tabm

nnoremap :buffers

nnoremap ] :bn

nnoremap [ :bp

copy & paste

vnoremap y "+y

nnoremap y "+y

nnoremap yy "+yy

nnoremap Y "*y

vnoremap Y "*y

nnoremap Y y$

vnoremap Y *y$

nnoremap p "+p

nnoremap P "*P

vnoremap p "+p

vnoremap P "*P

Some other shortcuts

nmap w [I:let nr = input("Which one: ")exe "normal " . nr ."[t"

nnoremap fd :set nofoldenable! nofoldenable?

nnoremap fw :set nowrap! nowrap?

nmap w :w

nmap W :wq!

nmap WQ :wa:q

nmap q :q!

nmap Q :qa!

nmap :vsplit

nmap :split

nmap = =

nmap :resize -3

nmap :resize +3

nmap :vertical resize -3

nmap :vertical resize +3

vnoremap <

vnoremap > >gv

nnoremap < <<

nnoremap > >>

文章版權歸作者所有,未經允許請勿轉載,若此文章存在違規行為,您可以聯系管理員刪除。

轉載請注明本文地址:http://m.specialneedsforspecialkids.com/yun/25016.html

相關文章

  • 曬下我的vim+tmux

    摘要:效果最開始的想法是最簡配置實現最高效的使用。幾個有用的配置顯示空格和。打開時,用的語法進行高亮顯示。使用后,不顯示工作目錄問題。 效果 showImg(https://segmentfault.com/img/bVkBdC); showImg(https://segmentfault.com/img/bVkBdx); showImg(https://segmentfault.co...

    妤鋒シ 評論0 收藏0
  • 征服恐懼!用 Vim 寫 iOS App

    摘要:我們都知道和都是文本編輯器中的上古神器,你也許用,配合完成過大型或者的開發,你也許配合過其他插件,完成過,代碼的開發,但是很少有人試過的開發吧,畢竟的框架包含了很多東西,以及天生很長的名字,讓我們沒辦法把此神器用起來,今天我就來給大家講下 我們都知道 Vim 和 Emacs 都是文本編輯器中的上古神器,你也許用 ctags,cscopes 配合 Vim 完成過大型 C 或者 C++ 的...

    endless_road 評論0 收藏0
  • 華為云全新計算實例C6、S6商用,智能加速“引擎”再度開啟

    摘要:華為云全新計算實例商用,智能加速引擎再度開啟近年來,人工智能的快速發展給云計算能力帶來新的挑戰,數據與訓練的指數級增長激發了對算力巨大的需求。 華為云全新計算實例C6、S6商用,智能加速引擎再度開啟 近年來,人工智能的快速發展給云計算能力帶來新的挑戰,數據與訓練的指數級增長激發了對算力巨大的需求。同時,隨著數字世界向智能世界的轉變,行業+智能開始成為各行各業構建競爭力的關鍵所在。 4月...

    vvpvvp 評論0 收藏0

發表評論

0條評論

最新活動
閱讀需要支付1元查看
<