(Ubuntu 22.04/23.04)
1 2 3 |
$ sudo add-apt-repository ppa:jonathonf/vim $ sudo apt install vim |
Reference: How to Install Latest Vim 9.0 on Ubuntu Based Linux Distributions
Configure vim to enable Qml syntax
1 2 3 4 5 6 7 8 9 |
$ cd ~ $ mkdir .vim $ cd .vim $ mkdir ftplugin indent syntax $ wget -O ftplugin/qml.vim https://raw.githubusercontent.com/peterhoeg/vim-qml/master/ftplugin/qml.vim $ wget -O indent/qml.vim https://raw.githubusercontent.com/peterhoeg/vim-qml/master/indent/qml.vim $ wget -O syntax/qml.vim https://raw.githubusercontent.com/peterhoeg/vim-qml/master/syntax/qml.vim $ vi ~/.vimrc |
Add the following line:
1 2 |
autocmd BufRead,BufNewFile *.qml setfiletype qml |
Configure nvim and nvim-qt
1 2 3 4 5 |
$ cd ~/.config $ ln -s ~/.vim ./nvim $ cd nvim $ ln -s ~/.vimrc ./init.vim |
Reference: How to share config between Vim and Neovim