Skip to content

Instantly share code, notes, and snippets.

@JeOam
Last active March 15, 2016 02:15
Show Gist options
  • Save JeOam/914cf400bd96c8d28455 to your computer and use it in GitHub Desktop.
Save JeOam/914cf400bd96c8d28455 to your computer and use it in GitHub Desktop.
Vim 写 C、Lua 配置
" place at: ~/.vimrc
" Enable syntax highlighting
syntax on
" show line number
set nu
" Set to auto read when a file is changed from the outside
set autoread
" 1 tab == 4 spaces
set tabstop=4
" Use spaces instead of tabs
set expandtab
" Configure backspace so it acts as it should act
set backspace=eol,start,indent
" Set utf8 as standard encoding and en_US as the standard language
set encoding=utf8
" Use spaces instead of tabs
set expandtab
" Put this in your .vimrc to use Vundle.
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/.vim/bundle/plugins')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" Install YouCompleteMe
Bundle 'Valloric/YouCompleteMe'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
let g:ycm_global_ycm_extra_conf = "~/.vim/.ycm_extra_conf.py"
@JeOam
Copy link
Author

JeOam commented Mar 15, 2016

  • Shift + o: 在上一行插入一个新行
  • o: 在下一行插入一个新行
  • I: 行首输入
  • A: 行尾插入

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment