Vim's settings with plugins.
$ 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!'
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
$ sudo apt-get install clang libclang-dev
$ sudo apt-get install ctags
$ cd /usr/include/
$ sudo ctags --extra=+q -R .
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