text vim dotfile

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text vim dotfile相关的知识,希望对你有一定的参考价值。

set relativenumber      " relative line numbers
set tabstop=2           " soft tabs
set shiftwidth=2        " soft tabs
set expandtab           " use spaces for tabs
set backspace=2         " backspace in insert mode works like normal editor
syntax on               " syntax highlighting
filetype indent on      " activates indenting for files
set autoindent          " auto indenting
set number              " line numbers
colorscheme desert      " colorscheme desert
set nobackup            " get rid of anoying ~file

" open nerdtree automatically
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif

" make nerdtree pretty
let NERDTreeMinimalUI = 1
let NERDTreeDirArrows = 1

" quicker window movement
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>

" NerdTree mappings
nmap <C-n> :NERDTreeToggle<CR>

" Run ruby file
map <leader>r :!ruby %<cr>

" vim-spec mappings
nmap <leader>s :TestNearest<CR>
nmap <leader>t :TestFile<CR>
nmap <leader>a :TestSuite<CR>
nmap <leader>l :TestLast<CR>
nmap <leader>g :TestVisit<CR>

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()

" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'

Plugin 'janko-m/vim-test'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'scrooloose/nerdtree'
Plugin 'jremmen/vim-ripgrep'
Plugin 'vim-ruby/vim-ruby'
Plugin 'tpope/vim-surround'

call vundle#end()            " required
filetype plugin indent on    " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" 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

以上是关于text vim dotfile的主要内容,如果未能解决你的问题,请参考以下文章

text [抗原]抗原zshrc #dotfiles #shell #zsh

vim.sh

将点文件与 Dropbox 同步 [关闭]

简谈dotfiles

sh 〜/ Dropbox / dotfilesを来源に指定しているdotfilesのsymlinkをGoogleDriveを来源として作成しなおす

sh 一种优雅的Dotfile管理方法