If the directory $HOME/.vim/syntax does not exist, create it by typing inside terminalĬreate or edit the file filetype.vim inside your $HOME/.vim directory, as follows.Īu! BufRead,BufNewFile *.ijs,*.ijt,*.ijp,*.ijx setfiletype jĬopy the file File:J.vim.txt (and rename to j.vim) to your $HOME/.vim/syntax directory. Language specification file is available on Github. Your common_prefix function is buggy.Gedit includes syntax highlighting via GtkSourceView and fairly complete support for J is included since August 2012. But it is necessary for everything down the line and usually safer. I maybe wrong with escaping characters in the configuration file. Overall, do not be afraid to use more lines as the overall script would gain in readability. os.path.exists to check if a string isn't empty and decide whether or not it is the mod path we want?
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |