spacevim/bundle/neosnippet-snippets/neosnippets/fortran.snip
JIe 2bb7059579
Some checks failed
Detach Plugins / check (FlyGrep.vim) (push) Has been cancelled
Detach Plugins / check (GitHub.vim) (push) Has been cancelled
Detach Plugins / check (JavaUnit.vim) (push) Has been cancelled
Detach Plugins / check (SourceCounter.vim) (push) Has been cancelled
Detach Plugins / check (cpicker.nvim) (push) Has been cancelled
Detach Plugins / check (dein-ui.vim) (push) Has been cancelled
Detach Plugins / check (git.vim) (push) Has been cancelled
Detach Plugins / check (iedit.vim) (push) Has been cancelled
Detach Plugins / check (scrollbar.vim) (push) Has been cancelled
Detach Plugins / check (vim-chat) (push) Has been cancelled
Detach Plugins / check (vim-cheat) (push) Has been cancelled
Detach Plugins / check (vim-todo) (push) Has been cancelled
Detach Plugins / check (xmake.vim) (push) Has been cancelled
test / Linux (nvim, nightly) (push) Has been cancelled
test / Linux (nvim, v0.3.8) (push) Has been cancelled
test / Linux (nvim, v0.4.0) (push) Has been cancelled
test / Linux (nvim, v0.4.2) (push) Has been cancelled
test / Linux (nvim, v0.4.3) (push) Has been cancelled
test / Linux (nvim, v0.4.4) (push) Has been cancelled
test / Linux (nvim, v0.5.0) (push) Has been cancelled
test / Linux (nvim, v0.5.1) (push) Has been cancelled
test / Linux (nvim, v0.6.0) (push) Has been cancelled
test / Linux (nvim, v0.6.1) (push) Has been cancelled
test / Linux (nvim, v0.7.0) (push) Has been cancelled
test / Linux (nvim, v0.7.2) (push) Has been cancelled
test / Linux (nvim, v0.8.0) (push) Has been cancelled
test / Linux (nvim, v0.8.1) (push) Has been cancelled
test / Linux (nvim, v0.8.2) (push) Has been cancelled
test / Linux (nvim, v0.8.3) (push) Has been cancelled
test / Linux (nvim, v0.9.0) (push) Has been cancelled
test / Linux (nvim, v0.9.1) (push) Has been cancelled
test / Linux (true, vim, v7.4.052) (push) Has been cancelled
test / Linux (true, vim, v7.4.1689) (push) Has been cancelled
test / Linux (true, vim, v7.4.629) (push) Has been cancelled
test / Linux (true, vim, v8.0.0027) (push) Has been cancelled
test / Linux (true, vim, v8.0.0183) (push) Has been cancelled
test / Linux (vim, nightly) (push) Has been cancelled
test / Linux (vim, v8.0.0184) (push) Has been cancelled
test / Linux (vim, v8.0.1453) (push) Has been cancelled
test / Linux (vim, v8.1.2269) (push) Has been cancelled
test / Linux (vim, v8.2.2434) (push) Has been cancelled
test / Linux (vim, v8.2.3995) (push) Has been cancelled
test / Windows (nvim, nightly) (push) Has been cancelled
test / Windows (nvim, v0.3.8) (push) Has been cancelled
test / Windows (nvim, v0.4.2) (push) Has been cancelled
test / Windows (nvim, v0.4.3) (push) Has been cancelled
test / Windows (nvim, v0.4.4) (push) Has been cancelled
test / Windows (nvim, v0.5.0) (push) Has been cancelled
test / Windows (nvim, v0.5.1) (push) Has been cancelled
test / Windows (nvim, v0.6.0) (push) Has been cancelled
test / Windows (nvim, v0.6.1) (push) Has been cancelled
test / Windows (nvim, v0.7.0) (push) Has been cancelled
test / Windows (nvim, v0.7.2) (push) Has been cancelled
test / Windows (nvim, v0.8.0) (push) Has been cancelled
test / Windows (nvim, v0.8.1) (push) Has been cancelled
test / Windows (nvim, v0.8.2) (push) Has been cancelled
test / Windows (nvim, v0.8.3) (push) Has been cancelled
test / Windows (nvim, v0.9.0) (push) Has been cancelled
test / Windows (nvim, v0.9.1) (push) Has been cancelled
test / Windows (vim, nightly) (push) Has been cancelled
test / Windows (vim, v7.4.1185) (push) Has been cancelled
test / Windows (vim, v7.4.1689) (push) Has been cancelled
test / Windows (vim, v8.0.0027) (push) Has been cancelled
test / Windows (vim, v8.0.1453) (push) Has been cancelled
test / Windows (vim, v8.1.2269) (push) Has been cancelled
test / Windows (vim, v8.2.2434) (push) Has been cancelled
test / Windows (vim, v8.2.3995) (push) Has been cancelled
docker / docker (push) Has been cancelled
mirror / check (coding) (push) Has been cancelled
mirror / check (gitee) (push) Has been cancelled
mirror / check (gitlab) (push) Has been cancelled
init
2024-08-21 14:17:26 +08:00

189 lines
2.7 KiB
Plaintext

# inspired/derived from
# https://github.com/hellolife/Vim/blob/b4b84f5e0685bdccf58474d5311c094e7eab5eb4/vimfiles/autoload/neosnippet/snippets/fortran.snip
snippet pr
abbr program
options head
program ${1:main}
${2}
end program $1
snippet sua
abbr subroutine
options head
subroutine ${1:`expand('%:r')`}(${2})
use ${3:comvar}
implicit none
${4}
end subroutine $1
snippet su
abbr subroutine
options head
subroutine ${1:`expand('%:r')`}
use ${2:comvar}
implicit none
${3}
end subroutine $1
snippet mo
abbr module
options head
module ${1:`expand('%:r')`}
implicit none
save
${2}
end module $1
snippet fu
abbr function
options head
function ${1:}(${2})
${3}
end function $1
snippet inp
abbr integer parameter
options head
integer, parameter ::
snippet in
abbr integer
options head
integer ::
snippet ini
abbr integer intent(in)
options head
integer, intent(in) ::
snippet ino
abbr integer intent(out)
options head
integer, intent(out) ::
snippet rep
abbr real parameter
options head
real, parameter ::
snippet re
abbr real
options head
real ::
snippet rei
abbr real intent(in)
options head
real, intent(in) ::
snippet reo
abbr real intent(out)
options head
real, intent(out) ::
snippet ind
abbr integer dimension
options head
integer, dimension(${1::})${2:#:, allocatable} :: ${3}
snippet indi
abbr integer dimension intent(in)
options head
integer, dimension(${1}), intent(in) :: ${2}
snippet indo
abbr integer dimension intent(out)
options head
integer, dimension(${1}), intent(out) :: ${2}
snippet red
abbr real dimension
options head
real, dimension(${1::})${2:#:, allocatable} :: ${3}
snippet redi
abbr real dimension intent(in)
options head
real, dimension(${1}), intent(in) :: ${2}
snippet redo
abbr real dimension intent(out)
options head
real, dimension(${1}), intent(out) :: ${2}
snippet ch
abbr character
options head
character(${1}) :: ${2}
snippet chd
abbr character dimension
options head
character(${1}), dimension(${2}) :: ${3}
snippet lo
abbr logical
options head
logical :: ${1:fileExsit}
snippet if
abbr if
options head
if (${1}) ${2}
snippet ift
abbr if then
options head
if (${1}) then
${2}
end if
snippet read
abbr read
options head
read(${1:*},${2:*}) ${3}
snippet wr
abbr write
options head
write(${1:*},${2:*}) ${3}
snippet op
abbr open
options head
open(${1:11},file=${2},status=${3:#:old}${4:#:,position='append'})
${5}
close($1)
snippet se
abbr select case
options head
select case (${1})
${2}
end select
snippet case
abbr case
options head
case(${1})
${2}
snippet do
abbr do
options head
do ${1}
end do
snippet ty
abbr type
options head
type ${1:}
${2}
end type $1
snippet tyd
abbr type dimension
options head
type(${1}), dimension(${2::}), allcatable :: ${3}