snaiffer / vim

Settings for vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vim's settings with plugins.

Instalation

$ sudo apt-get -y install vim git
$ rm -Rf ~/.vim ~/.vimrc && git clone https://github.com/snaiffer/vim.git ~/.vim && ln -s ~/.vim/vimrc ~/.vimrc && vim -c "BundleInstall" -c 'qa!'

[Additionally:]

Copy/Paste via SSH

https://defuse.ca/blog/clipboard-over-ssh-with-vim.html https://stackoverflow.com/questions/5240473/in-vim-with-xclip-yank-to-clipboard

  • First install xclip on both your local machine and the server: apt-get install xclip

  • sshd

    • Next, enable X11 forwarding on the server. Add the following to /etc/ssh/sshd_config: X11Forwarding yes
    • [ Ошибка форвардинга X11 может также произойти, если удаленный хост на котором работает сервер SSH, отключен IPv6. В этом случае надо добавить: AddressFamily inet ]
    • Check config-file /usr/sbin/sshd -t
    • sudo service sshd restart
  • Auto-use forwarding on client. Add the following to ~/.ssh/config: ForwardX11 yes

** Check. *** Connect to server: echo $DISPLAY Output shouldn't be empty *** On server: echo "hi" | xclip -i -selection clipboard On client "hi" should be in exchange buffer.

  • On server add to ~/.vimrc: vmap "yy :call system('xclip -selection clipboard', @y) map :r!xclip -o -selection clipboard

clang

$ sudo apt-get install clang libclang-dev

Generate tags for C/C++

$ sudo apt-get install ctags

$ cd /usr/include/
$ sudo ctags --extra=+q -R .

pyclewn --debugger for C and C++

Download the latest version http://pyclewn.sourceforge.net/index.html

$ tar xzf pyclewn*
$ cd pyclewn-1.11.py3
$ sudo EDITOR=/usr/bin/vim python setup.py install --force

About

Settings for vim


Languages

Language:Vim Script 100.0%Language:Erlang 0.0%